package 作业;

import java.util.Scanner;

public class 输出身份证号上面的出生日期 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入你的身份证号：");
        String idCard = sc.nextLine();

        String year = idCard.substring(6, 10);
        String month = idCard.substring(10, 12);
        String day = idCard.substring(12, 14);

        System.out.println("你的出生日期是" + year + "年" + month + "月" + day + "日");
    }
}
